﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace LdtJudge.DataEngine.Model.XMLConfigModel.SituationPloModel
{
    [Serializable]
    [XmlRootAttribute("root", IsNullable = false)]
    public class SituationPlotConfigModel
    {
        [XmlElementAttribute("casetype")]
        public List<SituationPlotCaseType> situationPlotCaseTypeList = new List<SituationPlotCaseType>();
    }

    public class SituationPlotCaseType 
    {
        /// <summary>
        ///案件类型 
        /// </summary>
        [XmlAttribute("code")]
        public string code { get; set; }

        [XmlElementAttribute("booktype")]
        public List<SituationPlotBookType> situationPlotBookTypeList = new List<SituationPlotBookType>();
    }

    public class SituationPlotBookType 
    {
        /// <summary>
        ///文书类型 
        /// </summary>
        [XmlAttribute("code")]
        public string code { get; set; }
        
        [XmlElementAttribute("casecuase")]
        public List<SituationPlotCaseCuase> situationPlotCaseCuaseList = new List<SituationPlotCaseCuase>();
        
        [XmlElementAttribute("merge")]
        public List<SituationPlotMerge> situationPlotMergeList = new List<SituationPlotMerge>();
    }

    public class SituationPlotCaseCuase 
    {
        /// <summary>
        ///文书类型 
        /// </summary>
        [XmlAttribute("code")]
        public string code { get; set; }

        [XmlElementAttribute("merge")]
        public List<SituationPlotMerge> situationPlotMergeList = new List<SituationPlotMerge>();
    }

    public class SituationPlotMerge
    {
        /// <summary>
        ///路径 
        /// </summary>
        [XmlAttribute("path")]
        public string path { get; set; }
        /// <summary>
        ///类型 
        /// </summary>
        [XmlAttribute("type")]
        public string type { get; set; }
    }
}
